import axios from "axios";

function getBrand() {
  return axios({
    url: "https://api2.dikadu.cn/content/brand/listBrand",
    method: "post",
    data: {},
  });
}

export default defineEventHandler(async event => {
  let res = await getBrand();
  let brandList = res.data.data;
  return {
    hello: "worldA",
    brandList,
  };
});
